package com.samsung.sharepoint;

/* This class returns tha path of the file selected 
 * 
 */
public class option implements Comparable<option> {
	private String name;
	private String path;
	private String data;

	public option(String n, String d, String p) {
		name = n;
		data = d;
		path = p;
	}

	public String getname() {
		return name;
	}

	public String getdata() {
		return data;
	}

	public String getpath() {
		return path;
	}

	public int compareTo(option o) {
		// TODO Auto-generated method stub
		if (this.name != null)
			return this.name.toLowerCase().compareTo(o.getname().toLowerCase());
		else
			throw new IllegalArgumentException();
	}

}
